setTitle

open fun setTitle(@StringRes resId: Int)(source)

Set the title of this toolbar.

A title should be used as the anchor for a section of content. It should describe or name the content being viewed.

Parameters

resId

Resource ID of a string to set as the title


open fun setTitle(title: CharSequence)(source)

Set the title of this toolbar.

A title should be used as the anchor for a section of content. It should describe or name the content being viewed.

Parameters

title

Title to set